<%@ page contentType="text/html;charset=UTF-8"%>
<script>
<%
	String domain = (String)request.getAttribute("domain");
	String isRemote = (String)request.getAttribute("isRemote");//是否是跨域访问
	String fiType = (String)request.getAttribute("fileType");
	isRemote = isRemote == null ? "" : isRemote;
	if("T".equals(isRemote) && null!=domain){
		out.print("document.domain=\""+domain+"\"");
	}else{
	    //out.print("document.domain=\"F\"");
	}
%>
	var id = "${idname}";
	var flag = "${flag}";
	var msg = "${msg}";
	var murl = "${murl}";
	var ft = "${fileType}";
	var surl = "${surl}";
	var callb = "${callback}";
	//alert("id="+id+"  flag="+flag+"  msg="+msg+"   murl="+murl+"   callback="+callb)
if (callb == null ||callb == ""){ 
	//没用回调函数，执行默认的方法
	if(ft == null ||ft == ""){
	  window.parent.messgeDis(id,flag,msg,murl);
	}else if(ft=="pic"){
	  window.parent.messgeDis(id,flag,ft,msg,murl,surl);
	}	
}else{
	//有回到函数
	if(ft == null ||ft == ""){
	  window.parent.myDis(id,flag,msg,murl);
	}else if(ft=="pic"){
	  window.parent.myDis(id,flag,ft,msg,murl,surl);
	}
}
</script>